<% 
# @Filename: app/views/layouts/application.rhtml
# @Author:   etng <etng2004@gmail.com>
# @Url:      <http://www.etng.net/blog> 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">  
  <head>
    <title><%= @page_title || '易特广告超市' %></title>
    <% %w(layout global component frontpage).each do |filename|
    %>
    <%= stylesheet_link_tag filename
    %>
<%end%>
<%= javascript_include_tag "common"%>
<script src="common" type="text/javascript"></script>
<!-- 滚动广告 begin -->
<script type="text/javascript">
  function slideLine(ul, delay, speed, lh) {
	var slideBox = (typeof ul == 'string')?document.getElementById(ul):ul;
	var delay = delay||1000, speed=speed||20, lh = lh||20;
	var tid = null, pause = false;
	var start = function() {
		tid=setInterval(slide, speed);
	}
	var slide = function() {
		if (pause) return;
		slideBox.scrollTop += 2;	
		if (slideBox.scrollTop % lh == 0) {
			clearInterval(tid);
			slideBox.appendChild(slideBox.getElementsByTagName('li')[0]);
			slideBox.scrollTop = 0;
			setTimeout(start, delay);
		}
	}
	slideBox.onmouseover=function(){pause=true;}
	slideBox.onmouseout=function(){pause=false;}
	setTimeout(start, delay);
  }
  </script>
<style type="text/css">
 #SlideImages {
	list-style: none;
	padding: 0;
	margin: 0;
	height: 90px;
	overflow: hidden;
 }
 #SlideImages li img{
	border: none;
 }
 </style>
<!-- 滚动广告 end -->
  </head>
<body class="CurHome">
<div id="Head">
  <div class="hidden"><a href="#">跳过导航及工具栏</a></div>
  <div id="HeadTop">
    <div id="Logo"> <a href="#" target="_top"><img src="images/logo.gif" alt="中国最大、最安全的网上交易社区，尽享淘宝乐趣！" border="0" height="31" width="240"></a> </div>
    <div id="HeadNavBar">
      <ul>
        <li class="NoSep"><a href="#" target="_top">我要买</a></li>
        <li><a href="#" target="_top">我要卖</a></li>
        <li><a id="MyTaoBao" href="#" target="_top">我的淘宝</a></li>
        <li><a href="#" target="_top">社区</a></li>
        <li><a href="#" target="_top">诚信安全</a></li>
        <li><a href="#" target="_top">帮助</a></li>
        <li id="AdvanceBox">
          <form action="search.php" method="get" name="qsearch" id="qsearch">
            <input name="f" value="D9_5_1" type="hidden">
            <input name="sort" value="coefp" type="hidden">
            <input name="q" id="qq" class="HeaderSearchBox DC" value="开始全新搜索" onfocus="startSearch(this);" type="text">
            <input value="搜索" class="HeaderSearchBtn" type="submit">
          </form>
          <script type="text/javascript">
		function startSearch(input) {
			if(input.value==input.defaultValue){
				input.value='';
				input.className = input.className.replace(' DC', '');
			}
		}
		</script>
        </li>
      </ul>
    </div>
    <div id="QuickLinks">
      <ul>
        <li><a href="#" target="_blank">高级搜索</a></li>
        <li><a href="#" target="_blank">支付宝</a></li>
          <li><a href="#" target="_top">收藏夹</a></li>
        <li><a href="#" target="_top">站内信</a></li>
        <li>您好，UserName！<a href="#" target="_top">[重新登录]</a></li>
      </ul>
    </div>
    <div class="HackBox"></div>
  </div>
  <div id="ChannelMenu">
    <ul id="ChannelMenuItems">
      <li id="MenuHome"><a href="#" target="_top"><span>首页</span></a></li>
      <li id="MenuMarket"><a href="#" target="_top"><span>下载专区</span></a></li>
      <li id="MenuMall"><a href="#" target="_top"><span>咨询中心</span></a></li>
      <li id="MenuSecondHand"><a href="#" target="_top"><span>博客一族</span></a></li>
      <li id="MenuGroupBuy"><a href="#" target="_top"><span>新闻传播</span></a></li>
      <li id="MenuInfo"><a href="#" target="_top"><span>交流论坛</span></a></li>
    </ul>
    <div id="SearchBox">
      <div id="SearchBoxTop">
        <div id="SearchForm">
          <form action="search.php" method="get" name="search" id="search">
            <select name="search_type">
              <option value="auction" selected="selected">搜索宝贝</option>
              <option value="shop">搜索店铺</option>
              <option value="nick">搜索掌柜</option>
              <option value="info">搜索资讯</option>
              <option value="web">搜索网页</option>
            </select>
            <input id="q" name="q" accesskey="s">
            <select id="cat" name="cat">
              <option value=""></option>
              <option value="" selected="selected">所有分类</option>
              <option value="">-----------------------</option>
              <option value="11">电脑/软件/网络/办公</option>
              <option value="15">手机/通讯设备/卡</option>
              <option value="50005523">笔记本电脑/专用配件</option>
              <option value="14">数码相机/摄像机/图形冲印</option>
              <option value="12">随身视听/音响/耳机</option>
              <option value="2201">运动/健身/运动明星/乐器</option>
              <option value="2203">户外/军品/旅游/机票</option>
              <option value="99">网络游戏虚拟商品交易区</option>
              <option value="50002768">家用电器/保健器械</option>
              <option value="21">居家日用/装饰/文具/园艺</option>
              <option value="23">邮币/古董/字画/收藏</option>
              <option value="26">汽车/摩托/自行车</option>
              <option value="27">建材装潢/五金工具/房产</option>
              <option value="20">电玩/动漫/Cosplay/周边</option>
              <option value="50004958">移动联通充值中心/IP长途</option>
              <option value="1705">珠宝首饰/配件/流行饰品</option>
              <option value="1801">彩妆/香水/护肤/美体</option>
              <option value="50000003">女士箱包/鞋帽/配件</option>
              <option value="16">女装/女士精品</option>
              <option value="30">男装/服饰配件</option>
              <option value="2813">成人用品/避孕用品/情趣内衣</option>
              <option value="50002766">保健品/食品</option>
              <option value="35">童装/婴幼/孕妇用品</option>
              <option value="28">ZIPPO/瑞士军刀/饰品/眼镜</option>
              <option value="25">玩具/模型/卡通产品</option>
              <option value="33">书籍/杂志/报纸</option>
              <option value="29">宠物/宠物食品及用品</option>
              <option value="34">音乐/影视/明星/娱乐</option>
              <option value="50005700">品牌手表/流行手表</option>
              <option value="50003754">个性定制/淘宝卖家服务/其它</option>
            </select>
            <input name="sort" value="coefp" type="hidden">
            <input value="搜 索" id="DoSearch" onclick="doSearch()" type="button">
            <input name="f" value="D9_5_1" type="hidden">
            <input name="spercent" value="95" type="hidden">
            <input name="commend" value="all" type="hidden">
            <input name="user_action" value="initiative" type="hidden">
            <a href="#" target="_top">高级搜索</a>&nbsp;<a href="#" target="_blank">使用帮助</a>
          </form>
          <script type="text/javascript">
		function doSearch(){
			var frm = document.forms["search"];
			var q=frm.q.value;
			var cat = (frm.cat)?frm.cat.value:"";
			var search_type = (frm.search_type)?frm.search_type.value:"";
			var commend=(frm.commend)?frm.commend.value:"";
			var user_action = (frm.user_action)?frm.user_action.value:"";
			var promote=(frm.promote)?frm.promote.value:"";
			var isnew=(frm.isnew)?frm.isnew.value:"";
			var newUrl = "search.php"+"?q="+q+"&cat="+cat+"&search_type="+search_type+"&commend="+commend+"&user_action="+user_action+"&promote="+promote+"&isnew="+isnew;			
							frm.submit();
					}
		if (window.attachEvent)
			window.attachEvent('onload', function(){document.forms['search'].q.focus();});
		else
			document.forms['search'].q.focus();
		</script>
        </div>
      </div>
      <div id="SearchHome"></div>
      <div id="HotKeywords">
        <ul>
          <li class="B"><a href="#" target="_blank">热门搜索</a>：</li>
          <li><a href="#">Vista</a></li>
          <li><a href="#">女鞋</a></li>
          <li><a href="#">闲置甩卖</a></li>
          <li><a href="#">特价机票</a></li>
          <li><a href="#">手机</a></li>
          <li><a href="#">红外套</a></li>
          <li><a href="#">GPS</a></li>
          <li><a href="#">乳胶枕</a></li>
          <li><a href="#">美剧</a></li>
          <li><a href="#">李宁</a></li>
          <li><a href="#">网游</a></li>
          <li><a href="#">狗狗</a></li>
        </ul>
      </div>
    </div>
    <!-- End SearchBox -->
  </div>
</div>
<div class="HackBox"></div>
    <%= "<h1>#{@page_title}</h1>" if @page_title %>
    <%= yield %>
    
<% time = Time.now %>
  <div id="Foot">
  <ul style="width: 512px;">
    <li><a href="http://www.etong.com/about/">关于易特</a></li>
    <li><a href="http://www.etong.com/about/partners.php">合作伙伴</a></li>
    <li><a href="http://www.etong.com/support/help.htm">客服中心</a></li>
    <li><a href="http://www.etong.com/about/join.php">诚征英才</a></li>
    <li><a href="http://www.etong.com/about/contact.php">联系我们</a></li>
    <li><a href="http://www.etong.com/sitemap.php">网站地图</a></li>
    <li><a href="http://www.etong.com/about/copyright.php">版权说明</a></li>
  </ul>
  <div style="margin: 0pt auto; width: 380px; font-family: arial;">Copyright 2005-<%= Time.now.strftime("%Y") %>, 版权所有 ETE.CN<br>
    <a href="http://www.miibeian.gov.cn/" target="_blank">浙ICP备06008609</a> </div>
  <div id="ServerNum"></div>
</div>
  </body>
</html>